package com.zsrt.javase.c001.t02.p05;

import java.text.SimpleDateFormat;
import java.util.Date;

import org.junit.Test;

public class yesteday {
	
	@Test
	public void testName() throws Exception {
		
		Date today = new Date();
		Date yesterday = new Date(today.getTime() - 24*60*60*1000L);
		String ftyd = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(yesterday);
		System.err.println(ftyd);

	}
	
	

}
